package com.dao.user;

import com.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface UserMapper {
    public List<User> getUserLsit();
    public List<User> getUserLsit(User user);
    public List<User> getUserLsitByMap(Map<String,String>  userMap);
    public List<User> getUserListByRoleId(Integer roleId);
    public List<User> getAddressListByUserId(Integer roleId);
    public int add(User user);
    public int modify(User user);
    public int updatePwd(@Param("id")Integer id, @Param("userPassword")String pwd);
    public int deleteUserById(@Param("id")Integer delId);
    public List<User> getUserList(@Param("userName") String userName,@Param("userRole") Integer roleId);
    public List<User> getUserByRoleId_foreach_array(Integer[] role);
    public List<User> getUserByRoleId_foreach_List(List<Integer> roleList);
    public List<User> getUserByConnditionMap_foreach_map(Map<String,Object> conditioMap);
    public List<User> getUserByRoleId_foreach_map(Map<String,Object> roleMap);
    public List<User> getUserList_choose(@Param("userName")String userName,@Param("UserRole")Integer roleId,@Param("userCode")String userCode,@Param("creationDate")Date creationDate);
    public List<User> getUserList();

    public int deleteUserByUserRole(@Param("userRole")Integer userRole);


    public List<User> getUserList(User user);//CH7Yuxi01

}
